package com.hegongda.okcmall.product.fegin;

import com.hegongda.common.to.SkuReductionTo;
import com.hegongda.common.to.SpuBoundsTo;
import com.hegongda.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author liueidong
 * @create 2021-02-15 12:21
 */
@FeignClient("okcmall-coupon")
public interface CouponService {

    @PostMapping("/coupon/spubounds/save")
    R save(@RequestBody SpuBoundsTo spuBounds);

    @PostMapping("coupon/skufullreduction/saveSkuReductionInfo")
    R saveSkuReduction(@RequestBody  SkuReductionTo skuReductionTo);
}
